package com.deng.test.mapper;

import com.deng.test.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    List<User> getAllUser();

    User getUserByName(@Param("username") String username);

    User getUserByEmail(@Param("email") String email);

    User getUser(@Param("name") String name);

    User register(@Param("user") User user);
}
